package com.erp.erpboot;

import com.erp.erpboot.factory.ApplicationContextFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class ErpbootApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext app = SpringApplication.run(ErpbootApplication.class, args);
        ApplicationContextFactory.setApplicationContext(app);
    }

}
